/* Copyright  2009
   @Author
   Richard Changde Yin            e-mail yinchangde@hotmail.com

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; version 2 of the License.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */

/**
 * @filename: errmsg.h
 */

#ifndef __ERRMSG_H__
#define __ERRMSG_H__

#include <plugin/error_message_handler.h>

// need stdarg for va_list
#include <stdarg.h>
struct st_plugin_int;
int errmsg_initializer(st_plugin_int *plugin);
int errmsg_finalizer  (st_plugin_int *plugin);

bool errmsg_vprintf (Session *session, int priority,
                     char const *format, va_list ap);

#endif /* __ERRMSG_H__ */
